package com.imonsoft.sqm.dao.business.ipic_system;

import com.imonsoft.sqm.pojo.business.ipic_system.ClaimIncomingView;
import com.imonsoft.sqm.pojo.business.ipic_system.ClaimIncomingViewExample;
import java.util.List;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

@SuppressWarnings("deprecation")
@Repository("claimIncomingViewDAO")
public class ClaimIncomingViewDAOImpl extends SqlMapClientDaoSupport implements ClaimIncomingViewDAO {

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim_incoming_for_worst_supplier
	 * @ibatorgenerated  Mon Jun 17 10:28:23 CST 2013
	 */
	public ClaimIncomingViewDAOImpl() {
		super();
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim_incoming_for_worst_supplier
	 * @ibatorgenerated  Mon Jun 17 10:28:23 CST 2013
	 */
	public int countClaimIncomingViewByExample(ClaimIncomingViewExample example) {
		Integer count = (Integer) getSqlMapClientTemplate()
				.queryForObject(
						"tv_claim_incoming_for_worst_supplier.ibatorgenerated_countByExample",
						example);
		return count;
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim_incoming_for_worst_supplier
	 * @ibatorgenerated  Mon Jun 17 10:28:23 CST 2013
	 */
	public int deleteClaimIncomingViewByExample(ClaimIncomingViewExample example) {
		int rows = getSqlMapClientTemplate()
				.delete("tv_claim_incoming_for_worst_supplier.ibatorgenerated_deleteByExample",
						example);
		return rows;
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim_incoming_for_worst_supplier
	 * @ibatorgenerated  Mon Jun 17 10:28:23 CST 2013
	 */
	public void insertClaimIncomingView(ClaimIncomingView record) {
		getSqlMapClientTemplate().insert(
				"tv_claim_incoming_for_worst_supplier.ibatorgenerated_insert",
				record);
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim_incoming_for_worst_supplier
	 * @ibatorgenerated  Mon Jun 17 10:28:23 CST 2013
	 */
	public void insertClaimIncomingViewSelective(ClaimIncomingView record) {
		getSqlMapClientTemplate()
				.insert("tv_claim_incoming_for_worst_supplier.ibatorgenerated_insertSelective",
						record);
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim_incoming_for_worst_supplier
	 * @ibatorgenerated  Mon Jun 17 10:28:23 CST 2013
	 */
	@SuppressWarnings("unchecked")
	public List<ClaimIncomingView> selectClaimIncomingViewByExample(
			ClaimIncomingViewExample example) {
		List<ClaimIncomingView> list = getSqlMapClientTemplate()
				.queryForList(
						"tv_claim_incoming_for_worst_supplier.ibatorgenerated_selectByExample",
						example);
		return list;
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim_incoming_for_worst_supplier
	 * @ibatorgenerated  Mon Jun 17 10:28:23 CST 2013
	 */
	public int updateClaimIncomingViewByExampleSelective(
			ClaimIncomingView record, ClaimIncomingViewExample example) {
		UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
		int rows = getSqlMapClientTemplate()
				.update("tv_claim_incoming_for_worst_supplier.ibatorgenerated_updateByExampleSelective",
						parms);
		return rows;
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim_incoming_for_worst_supplier
	 * @ibatorgenerated  Mon Jun 17 10:28:23 CST 2013
	 */
	public int updateClaimIncomingViewByExample(ClaimIncomingView record,
			ClaimIncomingViewExample example) {
		UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
		int rows = getSqlMapClientTemplate()
				.update("tv_claim_incoming_for_worst_supplier.ibatorgenerated_updateByExample",
						parms);
		return rows;
	}

	/**
	 * This class was generated by Apache iBATIS ibator. This class corresponds to the database table tv_claim_incoming_for_worst_supplier
	 * @ibatorgenerated  Mon Jun 17 10:28:23 CST 2013
	 */
	private static class UpdateByExampleParms extends ClaimIncomingViewExample {
		private Object record;

		public UpdateByExampleParms(Object record,
				ClaimIncomingViewExample example) {
			super(example);
			this.record = record;
		}

		public Object getRecord() {
			return record;
		}
	}
}